﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="IService.Admin.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>管理员登录</title>
    <script src="Script/jquery-1.6.2.min.js" type="text/javascript"></script>
    <style type="text/css">
        *
        {
            font-size: 9pt;
        }
        body
        {
            margin: auto;
            background-image: url(Style/images/bg.gif);
            background-repeat: repeat-x;
        }
        .inputtxt
        {
            width: 210px;
            height: 30px;
            line-height: 30px;
            background: url(Style/images/inputbg.gif) repeat-x;
            border: solid 1px #d1d1d1;
            font-size: 12pt;
            font-family: Verdana, Geneva, sans-serif;
        }
        .submitButton
        {
            height: 34px;
            width: 95px;
            background: url(Style/images/login.gif) no-repeat;
            border: none;
            cursor: pointer;
        }
    </style>
    <script type="text/javascript">
        function checkForm() {
            if ($("#<%=TxtUsername.ClientID%>").val() === "") {
                $("#<%=LblReslutMessage.ClientID %>").html("<font color='red'>用户名不能为空！</font>");
                return false;
            }
            else if ($("#<%=TxtPassword.ClientID%>").val() === "") {
                $("#<%=LblReslutMessage.ClientID %>").html("<font color='red'>密码不能为空</font>");
                return false;
            }
            return true;
        }
    </script>
</head>
<body>
    <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="561" style="background: url(Style/images/lbg.gif)">
                            <table width="940" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td height="238" style="background: url(Style/images/login01.jpg)">
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td height="190">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td width="208" height="190" style="background: url(Style/images/login02.jpg)">
                                                    &nbsp;
                                                </td>
                                                <td width="518" style="background: url(Style/images/login03.jpg)">
                                                    <form runat="server" id="loginform">
                                                    <table width="340" border="0" align="center" cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <td width="30" height="37">
                                                                <img alt="" src="Style/images/user.gif" width="30px" height="30px" />
                                                            </td>
                                                            <td width="60" height="37" style="text-align: right">
                                                                用户名：
                                                            </td>
                                                            <td width="242" height="37">
                                                                <asp:TextBox runat="server" ID="TxtUsername" ToolTip="登录账号" CssClass="inputtxt"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="37">
                                                                <img alt="" src="Style/images/password.gif" width="28px" height="30px" />
                                                            </td>
                                                            <td height="37" style="text-align: right">
                                                                密码：
                                                            </td>
                                                            <td height="37">
                                                                <asp:TextBox TextMode="Password" runat="server" ID="TxtPassword" ToolTip="登录密码" CssClass="inputtxt"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                &nbsp;
                                                            </td>
                                                            <td>
                                                                &nbsp;
                                                            </td>
                                                            <td>
                                                                <asp:Label runat="server" ID="LblReslutMessage"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="43">
                                                                &nbsp;<input id="resultTag" type="hidden" value="init" />
                                                            </td>
                                                            <td height="43">
                                                                &nbsp;
                                                            </td>
                                                            <td height="43">
                                                                <asp:Button runat="server" ID="BtnSubmit" OnClientClick="return checkForm();" OnClick="BtnSubmit_Click" CssClass="submitButton" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    </form>
                                                </td>
                                                <td width="214" style="background: url(Style/images/login04.jpg)">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="133" style="background: url(Style/images/login05.jpg)">
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</body>
</html>
